package base.sys.api.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.List;

import base.core.api.BaseFeign;
import base.core.api.Result;
import base.sys.api.BaseSysFeignConfig;
import base.sys.api.enetity.SysMenu;
import base.sys.api.vo.SysMenuTree;
import io.swagger.annotations.Api;
import io.swagger.v3.oas.annotations.Operation;

/**
 * @Description 菜单权限表
 * @Author elegant
 * @CreatDate 2022/1/8 16:14
 */
@Api(tags = "菜单权限表接口")
@FeignClient(contextId = SysMenuFeign.API_PREFIX, path = BaseSysFeignConfig.APPLICATION_NAME + "/" + SysMenuFeign.API_PREFIX, value = BaseSysFeignConfig.APPLICATION_NAME)
public interface SysMenuFeign extends BaseFeign<SysMenu> {
    String API_PREFIX = BaseSysFeignConfig.APPLICATION_NAME + "/SysMenuApi";

    @GetMapping("getSysMenu")
    @Operation(summary = "获取系统菜单")
    Result< List<SysMenuTree>> getSysMenuTree();
}